<?php
$this->widget(
	'library\widgets\BreadCrumbs', 
	array('index', 'adminsgroups')
);
?>

<?php $this->widget('library\widgets\Tips'); ?>

<?php
$editUrl = $this->getHtml()->a('修改', $this->util->getUrlByCtrl('edit', array('id' => '__group_id__')));
$removeUrl = $this->getHtml()->button(
	'删除', 'btn___group_id__',
	array(
		'onclick' => 'return recycle(\'' . $this->util->getUrlByCtrl('remove', array('id' => '__group_id__')) . '\', this, \'确定删除？\');'
	)
);
$__operate__ = $editUrl . ' | ' . $removeUrl;
?>

<?php
echo $this->getHtml()->a('添加', $this->util->getUrlByCtrl('add'), array('class' => 'button black medium bigrounded'));
?>

<?php
$this->widget(
	'library\widgets\TableBuilder',
	array(
		'columns' => array(
			'group_name' => array(
				'attributes' => array(
					'width' => '12%',
					'nowrap' => 'nowrap'
				),
			),
			'group_id' => array(
				'label' => 'ID',
				'attributes' => array(
					'width' => '1%',
					'nowrap' => 'nowrap'
				),
			),
			'__operate__' => array(
				'label' => '操作',
				'attributes' => array(
					'width' => '7%',
					'nowrap' => 'nowrap'
				),
				'value' => $__operate__,
				'replace' => 'group_id'
			)
		),
		'form' => $this->util->getForm('AdminsGroups', 'admin'),
		'data' => $this->data
	)
);
?>
